<template>
  <div id="emit">
    <button @click="send">发送</button>
    <p>{{message}}</p>
  </div>
</template>


<script>
  import bus from './bus.js'
  export default {
    data(){
      return {
        message: '这里是第三个页面'
      }
    },
      methods: {
        send(){
          bus.$emit('msg', '在页面四打印出了页面三的消息')
        }
      },
      // mounted(){
      // this.send()
      // }
  }
</script>

<style scoped>

</style>
